////
////  PrintEveryNumber.c
////  HomeworkofBit_Macos
////
////  Created by 易小旭 on 2025/10/5.
////
//
//# include <stdio.h>
//# include <math.h>
//int main(void){
//    //please input a number
//    int num;
//    int isNegative = 0;
//    printf("please give me a number: ");
//    scanf("%d",&num);
//    //num ==0
//    if (num==0) {
//        return 0;
//    }
//    //num < 0, transform into positive
//    if (num<0) {
//        int isNegative = 1;
//        num = -num;
//    }
//    //calculate digits
//    int temp = num;
//    int digits = 0;
//    while (temp>0) {
//        temp /=10;
//        digits++;
//    }
//    printf("This is a number with %d digits\n",digits);
//    
//    if(isNegative){
//        printf("-");
//    }
//    //split each digit from the highest digit
//    do {
//        int divisor = (int)pow(10,digits-1); //calculate the divisor of current digit，from the highest to lowest digit
//        printf("%d   ",num/divisor);// `/` just keep the integer
//        num %= divisor;
//        digits--;
//        
//    } while (digits >0);
//    
//    
//return 0;
//    
//}
